package collection;

import java.util.ArrayList;
import java.util.Collection;

/**
 * @Author: Miyako
 * @Date: 2024-07-13-11:35
 * @Description:
 */
public class CollectionDemo04 {
    public static void main(String[] args) {
        Collection a = new ArrayList();
        point f = new point(6,6);
        a.add(f);
        System.out.println(f.toString());
        System.out.println(a);
        f.setX(5);
        f.setY(8);
        System.out.println(a);
        System.out.println(f.toString());


    }
}
